package com.smart.campus.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@TableName(value = "sh_student")
public class ShStudent implements Serializable {
    private static final long serialVersionUID = -94620400218934315L;

    @TableId(value = "id",type = IdType.AUTO)
    @Excel(name = "序号")
    private Integer id;
    /**
     * 学生姓名
     */
    @Excel(name = "学生姓名")
    private String stuName;
    /**
     * 学籍号
     */
    @Excel(name = "学籍号")
    private String stuCode;
    /**
     * 年级id
     */
    private Integer gradeId;
    /**
     * 班级id
     */
    @Excel(name = "班级id")
    private Integer classId;
    /**
     * 民族
     */
    @Excel(name = "民族")
    private String nationId;
    /**
     * 性别
     */
    @Excel(name = "性别")
    private Integer stGrener;
    /**
     * 监护人姓名
     */
    @Excel(name = "监护人姓名")
    private String guardfianName;
    /**
     * 监护人手机号
     */
    @Excel(name = "监护人手机号")
    private String gdPhone;
    /**
     * 地址
     */
    @Excel(name = "地址")
    private String stAddress;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改人
     */
    private String updateBy;
    /**
     * 修改时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private ShClass shClass;

    @TableField(exist = false)
    private Ethnicity ethnicity;
}
